package com.kk.miaosha;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author : K k
 * @date : 20:12 2020/9/26
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.kk","com.kk.miaosha.config"})
@EnableDiscoveryClient
@EnableRabbit//开启注解的rabbitmq模式
@EnableTransactionManagement
public class PayApplication {
    public static void main(String[] args) {
        SpringApplication.run(PayApplication.class,args);
    }
}
